package com.example.demo.controller;

import lombok.Data;

@Data
public class MemberContributionVO {
    private Long studentId;
    private String studentName;
    private String role; // LEADER 或 MEMBER
    private Double contributionRate; // 贡献度百分比
    private Integer completedTasks;  // 完成任务数
    private Double personalScore;    // 个人得分

    // 构造函数
    public MemberContributionVO() {}

    public MemberContributionVO(Long studentId, String studentName, String role,
                                Double contributionRate, Integer completedTasks, Double personalScore) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.role = role;
        this.contributionRate = contributionRate;
        this.completedTasks = completedTasks;
        this.personalScore = personalScore;
    }
}